package com.woniuxy.cloud.carl.marketing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.cloud.carl.marketing.client.param.AddDeductionParam;
import com.woniuxy.cloud.carl.marketing.client.param.GetCouponParam;
import com.woniuxy.cloud.carl.marketing.infra.model.Deduction;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.result.Result;

import java.util.List;

/**
 * <p>
 * 折扣券 服务类
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
public interface DeductionService extends IService<Deduction> {
    public Result addDeductionCoupon(AddDeductionParam param);

    Result<Page<Deduction>> getCoupon(GetCouponParam param);
    Result<Deduction> useDeduction(Long spuId,String couponId);

}
